package com.example.forum.utils;

import java.util.UUID;

public class UUIDUtil {
    /**
     * 生成一个32位数的UUID
     * @return
     */
    public static String uuid_32(){
        String uuid_32 = UUID.randomUUID().toString().replace("-","");
        return uuid_32;
    }
    /**
     * 生成一个36位数的UUID
     */
    public static String uuid_36(){
        String uuid_36 = UUID.randomUUID().toString();
        return uuid_36;
    }
}
